// index.scss
.ai-assistant-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.header {
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: #333;
  text-align: center;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  
  .title {
    font-size: 20px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
}

.message-list {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.05);
}

.message {
  margin-bottom: 20px;
  display: flex;
  animation: fadeInUp 0.3s ease-out;
  
  .message-content {
    max-width: 75%;
    padding: 12px 18px;
    border-radius: 20px;
    word-break: break-word;
    font-size: 15px;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    
    &.loading {
      color: #666;
      font-style: italic;
    }
  }
}

.user-message {
  justify-content: flex-end;
  
  .message-content {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-bottom-right-radius: 6px;
    position: relative;
    
    &::after {
      content: '';
      position: absolute;
      top: 0;
      right: -8px;
      width: 0;
      height: 0;
      border: 8px solid transparent;
      border-left-color: #764ba2;
      border-right: 0;
      margin-top: 8px;
    }
  }
}

.ai-message {
  justify-content: flex-start;
  
  .message-content {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-bottom-left-radius: 6px;
    backdrop-filter: blur(10px);
    position: relative;
    
    &::after {
      content: '';
      position: absolute;
      top: 0;
      left: -8px;
      width: 0;
      height: 0;
      border: 8px solid transparent;
      border-right-color: rgba(255, 255, 255, 0.95);
      border-left: 0;
      margin-top: 8px;
    }
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.input-area {
  display: flex;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: none;
  align-items: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  
  .input {
    flex: 1;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 25px;
    padding: 12px 20px;
    margin-right: 12px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    outline: none;
    
    &:focus {
      border-color: #667eea;
      box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
      background: white;
    }
    
    &::placeholder {
      color: #999;
    }
  }
  
  .send-button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    width: auto !important;
    min-width: 80px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    
    &:hover:not(:disabled) {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    }
    
    &:active:not(:disabled) {
      transform: translateY(0);
    }
    
    &:disabled {
      background: linear-gradient(135deg, #ccc, #999);
      cursor: not-allowed;
      transform: none;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
  }
}